import {Component} from '@angular/core';
import {GnMenu} from 'geminis-ng-core';
import {HttpClient} from '@angular/common/http';

@Component({
  selector: 'app-workspace',
  templateUrl: './workspace.component.html',
  styleUrls: ['./workspace.component.scss']
})
export class WorkspaceComponent {

  public menus: GnMenu[] = [];

  constructor(private http: HttpClient) {
    this.http.get('assets/config/workspace.json')
      .subscribe((menus: any) => {
        this.menus = menus;
      });
  }

}
